home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / adl / include / adltypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-08  |  2.8 KB  |  144 lines

  1. /* Undefine any predefined things */
  2. #ifdef HPUX
  3. #    undef HPUX
  4. #endif
  5.  
  6. #ifdef MSDOS
  7. #    undef MSDOS
  8. #endif
  9.  
  10. #ifdef BSD
  11. #    undef BSD
  12. #endif
  13.  
  14. #ifdef AMIGA
  15. #    undef AMIGA
  16. #endif
  17.  
  18. #ifdef PCC
  19. #    undef PCC
  20. #endif
  21.  
  22. #ifdef LATTICE
  23. #    undef LATTICE
  24. #endif
  25.  
  26. #ifdef DEBUG
  27. #    undef DEBUG
  28. #endif
  29.  
  30. #ifdef HPTERM
  31. #    undef HPTERM
  32. #endif
  33.  
  34. #ifdef ANSI
  35. #    undef ANSI
  36. #endif
  37.  
  38. #ifdef TERMCAP
  39. #    undef TERMCAP
  40. #endif
  41.  
  42. #ifdef UNIX
  43. #    undef UNIX
  44. #endif
  45.  
  46. #ifdef MULTIPLEX
  47. #    undef MULTIPLEX
  48. #endif
  49.  
  50.  
  51.     /***************************************************************\
  52.     *                                *
  53.     *    The following #defines configure the ADL system for    *
  54.     *    local machine architectures and operating systems.    *
  55.     *    Read them carefully, then appropriately define the    *
  56.     *    constants.  If your system doesn't exist here, make    *
  57.     *    up a new name and create a new set of typedefs        *
  58.     *    and system-dependant #defines for that system.        *
  59.     *                                *
  60.     \***************************************************************/
  61.  
  62. #define HPUX    0        /* HP-UX or SysIII or SysV UN*X    */
  63. #define MSDOS    0        /* MS-DOS 2.1 or greater    */
  64. #define BSD    1        /* BSD 4.2 or greater        */
  65. #define AMIGA    0        /* Amiga computer        */
  66.  
  67. /* Language defines */
  68. #define PCC    1        /* UN*X-style C compiler    */
  69. #define LATTICE 0        /* Lattice C            */
  70.  
  71. /* Utility defines */
  72. #define DEBUG    1        /* Debugging in ADLRUN        */
  73.  
  74. /* Terminal defines */
  75. #define HPTERM    0        /* HP terminal I/O        */
  76. #define ANSI    0        /* ANSI terminal I/O        */
  77. #define TERMCAP    1        /* Termcap I/O            */
  78.  
  79. /* The following is UNTESTED - do not use it! */
  80. #define MULTIPLEX 0        /* Allow multiplexing of terminals? */
  81.  
  82.  
  83. /* The following is for BSD-like systems - it allows for the
  84.    execution of an ADL binary directly.  Change it to reflect
  85.    where adlrun lives on your system.
  86. */
  87.  
  88. #ifndef ADL_NAME
  89. #    define ADL_NAME "/usr/games/adlrun"
  90. #endif
  91.  
  92.  
  93. /* The following is the character which is used to obfuscate strings */
  94. #define CODE_CHAR 0xff
  95.  
  96. #if HPUX
  97. #  define    UNIX 1
  98.    typedef    short    int16;
  99.    typedef    long    int32;
  100.    typedef    unsigned short address;
  101. #  define    SRAND    srand
  102. #  define    RAND    rand()
  103. #  define    RB    O_RDWR
  104. #  define    WB    (O_RDWR | O_CREAT | O_TRUNC)
  105. #endif
  106.  
  107. #if BSD
  108. #  define    UNIX    1
  109.    typedef    short            int16;
  110.    typedef    long            int32;
  111.    typedef    unsigned short        address;
  112. #  define    SRAND    srandom
  113. #  define    RAND    random()
  114. #  define    RB    O_RDWR
  115. #  define    WB    (O_RDWR | O_CREAT | O_TRUNC)
  116. #endif
  117.  
  118. #if AMIGA
  119. #  define    UNIX    0
  120.    typedef    short            int16;
  121.    typedef    long            int32;
  122.    typedef    unsigned short        address;
  123. #  define    SRAND    srand
  124. #  define    RAND    rand()
  125. #  define    time    mytime
  126. #  define    RB    O_RDWR
  127. #  define    WB    (O_RDWR | O_CREAT | O_TRUNC)
  128. #endif
  129.  
  130. #if MSDOS
  131. #  define    UNIX            0
  132. #  define    int16            int
  133. #  define    int32            long
  134. #  define    address            unsigned
  135. #  define    SRAND            srand
  136. #  define    RAND            rand()
  137. #  define    time            mytime
  138. #  define    RB            (O_RDWR | O_RAW)
  139. #  define    WB            (O_RDWR | O_CREAT | O_TRUNC | O_RAW)
  140. #  define    void            int
  141. #endif
  142.  
  143. /*** EOF adltypes.h ***/
  144.